package com.jic.order.mapper;

import com.jic.order.entity.OrderAfterSaleTime;
import com.jic.order.request.OrderAfterSaleTimeRequest;
import com.jic.order.response.OrderAfterSaleTimeResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 订单售后有效期设置
 * @author : 
 * @email : 
 * @since : 2020-01-17 02:38:00
 * @version : v1.0.0
 */
@Mapper
public interface  OrderAfterSaleTimeMapper {

    long insert(OrderAfterSaleTime orderAfterSaleTime);

    long delete(Long id);

    long update(OrderAfterSaleTime orderAfterSaleTime);

    OrderAfterSaleTime queryByPrimaryKey(Long id);

    List<OrderAfterSaleTime> query(OrderAfterSaleTime orderAfterSaleTime);

    List<OrderAfterSaleTimeResponse> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("orderAfterSaleTime") OrderAfterSaleTimeRequest orderAfterSaleTime);

    long queryPageCount(OrderAfterSaleTimeRequest orderAfterSaleTime);
}